#ifndef __LEDS_H__
#define __LEDS_H__
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>

typedef struct {
    uint8_t port;
    uint8_t pin;
    bool active_level;
}led_t;

#define  LEDS_LED0   (1<<0)
#define  LEDS_LED1   (1<<1)
#define  LEDS_LED2   (1<<2)
#define  LEDS_LED3   (1<<3)
#define  LEDS_LED4   (1<<4)
#define  LEDS_LEDALL (0xFFFFFFF)

void leds_toggle(uint32_t leds);
void leds_on(uint32_t leds);
void leds_off(uint32_t leds);

#define LED_COUNT  (1)
#ifndef LED_COUNT
#define LED_COUNT  0
#endif /* LED_COUNT */
extern led_t board_leds[];

#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __LEDS_H__ */